package com.sheyu.mall.product.service.category;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sheyu.common.utils.PageUtils;
import com.sheyu.mall.product.entity.category.CategoryBrandRelationEntity;
import com.sheyu.mall.product.vo.BrandVo;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author sheyu
 * @email sheyu@XXX.com
 * @date 2020-07-27 12:44:31
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String name);

    void updateCategory(Long catId, String name);

    List<BrandVo> getBrandsList(Long catId);

    List<CategoryBrandRelationEntity> getResultByBradId(Long brandId);
}

